package org.demo.patten.mediator;

/**
 * @author zhuj
 * @date 2025/3/29
 * @apiNote
 */
public abstract class User {
    protected ChatRoomMediator mediator;
    protected String name;
    public User(String name, ChatRoomMediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }
    public abstract void send(String message);
    public abstract void receive(String message);
}
